package com.salary.model

import java.math.MathContext
import _root_.scala.xml.{NodeSeq, Node, Text, Elem}

import net.liftweb.common.Empty
import net.liftweb.mapper._

class Employee extends LongKeyedMapper[Employee] with IdPK {
  def getSingleton = Employee
  object idx extends MappedString(this,20)
  object em_name extends MappedString(this,100)
  object sex  extends MappedString(this,10)
  //object nationality  extends MappedString(this,30)
  object nationality  extends MappedCountry(this) 

  object salary extends MappedInt(this)
  object startdate extends MappedDate(this)
}

object Employee extends Employee with LongKeyedMetaMapper[Employee] with LongCRUDify[Employee]{
	override def dbTableName = "employees"
	override def fieldOrder = List(idx, em_name, sex, nationality, salary, startdate)
}
